package com.sllp.C71S3TsllpShop.bean;

import java.sql.Timestamp;

public class ChatRecord {
    private Integer id;

    private Timestamp sendTime;

    private Integer user;

    private Integer business;

    private Integer who;

    private String message;

    public ChatRecord(Integer id, Timestamp sendTime, Integer user, Integer business, Integer who) {
        this.id = id;
        this.sendTime = sendTime;
        this.user = user;
        this.business = business;
        this.who = who;
    }

    public ChatRecord(Integer id, Timestamp sendTime, Integer user, Integer business, Integer who, String message) {
        this.id = id;
        this.sendTime = sendTime;
        this.user = user;
        this.business = business;
        this.who = who;
        this.message = message;
    }

    public ChatRecord() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Timestamp getSendTime() {
        return sendTime;
    }

    public void setSendTime(Timestamp sendTime) {
        this.sendTime = sendTime;
    }

    public Integer getUser() {
        return user;
    }

    public void setUser(Integer user) {
        this.user = user;
    }

    public Integer getBusiness() {
        return business;
    }

    public void setBusiness(Integer business) {
        this.business = business;
    }

    public Integer getWho() {
        return who;
    }

    public void setWho(Integer who) {
        this.who = who;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message == null ? null : message.trim();
    }
}